home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16782 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  952 b 

  1. Path: grimsel.zurich.ibm.com!usenet
  2. From: Keith Whittingham <wgk@zurich.ibm.com>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: sizeof() question >>> :)
  5. Date: Fri, 12 Apr 1996 10:34:12 -0700
  6. Organization: IBM Zurich Research Laboratory
  7. Message-ID: <316E9414.28AE@zurich.ibm.com>
  8. References: <1996Apr12.061927@topaz>
  9. NNTP-Posting-Host: pine.zurich.ibm.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Win16; I)
  14. CC: naderr@topaz.cqu.edu.au
  15.  
  16. naderr@topaz.cqu.edu.au wrote:
  17. > Hi,
  18. > How can I get, with a pointer,  the sizeof  of an  array that is
  19. > pointed by the pointer ?  (No it's not a tounge twister :)
  20. > You can't, but since you're posting this to a C++ forum what you
  21. can do is write an array class, pass a reference to the array
  22. instance and ask that how many elements it contains but I 
  23. don't think you wanted that answer.
  24.  
  25. -- 
  26. Keith Whittingham
  27. wgk@zurich.ibm.com
  28.